package com.zz.controller;

import com.zz.dto.IndexInformation;
import com.zz.service.IndexInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * Copyright Zz
 * FileName: IndexController
 * Author:   Zz
 * Date:     2023/6/322:24
 * Description:首页控制层
 * hISTORY:
 * <author>  <time>     <version>    <desc>
 * 作者姓名   修改时间       版本号       描述
 */
@Controller
@RequestMapping("index")
public class IndexController {
    @Autowired
    private IndexInformationService indexInformationService;

    @PostMapping("getAllMessage")
    @ResponseBody
    public IndexInformation getAllMessage(){
        return indexInformationService.getAllMessage();
    }
}
